package com.example.design_pattern.strategy.impl;


import com.example.design_pattern.strategy.IPayment;
import com.example.design_pattern.strategy.Order;
import com.example.design_pattern.strategy.PayResult;
import org.springframework.stereotype.Service;


/**
 * 银联云闪付
 * @author: _先森
 */
@Service("UnionPay")
public class UnionPay implements IPayment {
    @Override
    public PayResult pay(Order order) {
        return new PayResult("云闪付支付成功");
    }
}
